//
//  FHConst.swift
//  FHweibo
//
//  Created by 张嵩雷 on 16/4/9.
//  Copyright © 2016年 feng. All rights reserved.
//

import UIKit

//swift主要不是在类里面的代码,全局都可以使用

/// ...可变参数
///默认参数 file: String = __FILE__,如果不传入参数会使用=后面的作为参数
func FHPrint(items: Any,file: String = __FILE__, line: Int = __LINE__, funciton: String = __FUNCTION__) {
    
    #if DEBUG
    print((file as NSString).lastPathComponent + ",[\(line)]行,方法名称: " + funciton + "输出: \(items)")
    #endif
}

///Mark: - 授权相关
let OauthUrl = "https://api.weibo.com/oauth2/authorize"

///申请应用时分配的AppKey
let client_id = "1526420282"

///授权回调地址
let redirect_uri = "http://www.baidu.com/"

/// 申请应用时分配的AppSecret
let client_secret = "150cd545bc51a35c3a1d00f1219b5aef"

///请求的类型
let grant_type = "authorization_code"

///accessToken请求地址
let accessTokenURLString = "https://api.weibo.com/oauth2/access_token"

///账号归档和解档的路径
 let accountPath = NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.DocumentDirectory, NSSearchPathDomainMask.UserDomainMask,true).last!.stringByAppendingString("/account.plist")

///设置全局背景颜色
let GlobalBGColor = UIColor.whiteColor()

///tabBar的数量
let FHMainTabBarButtonCount = 5

///欢迎界面label大小
let FHWelcomeLabelFontSize: CGFloat = 14

///新特性界面label大小
let FHNewFeatureLabelFontSize: CGFloat = 18

/// 默认动画时长
let FHDefautlAnimDuration: NSTimeInterval = 0.25

///新特性界面数量
let NumberofNewFeatureItem = 4

//MARK: cell的常量
///微博内容的间距
let FHStatusCellMargin: CGFloat = 8

///微博头像大小
let FHStatusIconWH: CGFloat = 35

///用户名称大小
let FHStatusNameFontSize: CGFloat = 14

//时间文字大小
let FHStatusTimeFontSize: CGFloat = 11

//微博文字大小
let FHStatusContentFontSize: CGFloat = 15
